<template>
  <div class="game">
    <van-tabs sticky swipeable @change="goTop">
      <van-tab class="none-top" v-for="(item, index) in tabList" :key="index" :title="item.title">
        <game-list :curIndex="index"></game-list>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
import { Tab, Tabs } from 'vant'
import gameList from './gameList'
export default {
  name: "game",
  components: {
    [Tab.name]: Tab,
    [Tabs.name]: Tabs,
    gameList
  },
  data() {
    return {
      tabList: [
        { title: '赛果'},
        { title: '赛程'}
      ]
    };
  },
  mounted() {
  },
  methods: {
    goTop() {
      window.scrollTo(0, 0)
    }
  }
};
</script>

<style scoped lang="less">
</style>
